Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified some code #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Simplified some code #1

wants to merge 1 commit into from

Conversation

FacelessManipulator
Copy link
Member

Brilliant idea.
Could you briefly introduce the structure of this project?
Could you create a config file for database account, password, binding port, etc.?

@orashi orashi requested review from Arbusz and orashi June 23, 2017 11:54
Copy link
Member

@orashi orashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally great for me, but maybe we should remove all the comments explaining the changes.

@@ -130,8 +134,7 @@ def api_mac_post():
return '["false","unknown"]'

try:
conn = psycopg2.connect(database="sunhaobomac", user="postgres", password="postgres", host="127.0.0.1",
port="5432")
conn = psycopg2.connect(database="sunhaobomac", user="postgre", password="postgre", host="127.0.0.1", port="5432")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually "postgres" is the default username and password for PostgreSQL so maybe we should leave it as before since this is going public, name for the database will be fixed maybe later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I forgot this point.

Copy link

@zsyh zsyh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request. I had a glance at the code, generally great. I've been busy now. I'll run integration tests after June 30th.

@orashi
Copy link
Member

orashi commented Jun 23, 2017

Thanks for the compliment and the PR! But the details are still under discussion, I'm sure these will come up recently by @Arbusz


app = Flask(__name__)
DEBUG=True
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug mode should NOT be opened in production environment

@orashi orashi reopened this Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants